package com.xmbandu.app.activity.guide;

import android.content.Intent;
import android.support.constraint.ConstraintLayout;
import android.view.View;
import android.widget.ImageView;

import com.xmbandu.app.R;
import com.xmbandu.app.base.BaseActivity;
import com.xmbandu.app.utils.CommonUtils;

/**
 * @author wmq
 * @date 2019-05-15
 * @description
 */
public class SplashTwoActivity extends BaseActivity {
    ConstraintLayout next;
    int tag = 0;
    @Override
    public int getLayoutId() {
        return R.layout.activity_splash_two;
    }

    @Override
    public void initViews() {
        tag = getIntent().getIntExtra("tag",0);
        next = findViewById(R.id.img_next);
    }

    @Override
    public void initListener() {
        setOnClick(next);
    }

    @Override
    public void initData() {

    }

    @Override
    public void processClick(View v) {
        if(v.getId()==R.id.img_next){
            if(CommonUtils.isClickable()) {
                Intent intent = new Intent(this, SplashThreeActvity.class);
                intent.putExtra("tag",tag);
                startActivity(intent);
                finish();
            }
        }
    }
}
